package com.jrapider.designer.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;


@Component
public class ContextEventListener implements ApplicationListener {
    private static final Logger LOG = LoggerFactory.getLogger(ContextEventListener.class);

    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        LOG.info("捕获Spring事件" + event.getClass().getName());
    }
}
